#ifndef PLANE
#define PLANE

#include <base\vec3f.h>

struct plane {

	vec3f normal,point;
	float d;

	plane(vec3f &v1, vec3f &v2, vec3f &v3);
	plane(void);
	~plane();

	void set3Points(vec3f &v1, vec3f &v2, vec3f &v3);
	void setNormalAndPoint(vec3f &normal, vec3f &point);
	void setCoefficients(float a, float b, float c, float d);
	float distance(vec3f &p);

};

#endif